<?php

class Student_Form_Import extends Sfs_Form
{

    public function init()
    {
        $studentCsv = $this->createElement('file', 'studentCsv', array(
            'label'      => 'student file',
            'size' => 16,
            'required' => true,
            'filters'    => array('StringTrim') )
        );

        $studentCsv->addValidator('Count', true, 2)
        ->addValidator('Size', true, "5000KB")
        ->addValidator('Extension', true, array('csv'));
        //->addValidator('MimeType',true,array('text/csv','text/plain'));

        $this->addElement($studentCsv);

        $this->addElement('checkbox', 'currentSemester',array(
            'label' => 'currentSemester memo' ,
            'checked' => true
        ));

       $this->addElement('checkbox', 'noReplace',array(
            'label' => "don't replace old data",
            'checked' => true
        ));

        $this->addElement('submit','act',array('label'=>'submit'));

    }


}

